#ifndef THINK_THINK_CONSOLE_OUTPUT_DRIVER_BUFFER_H
#define THINK_THINK_CONSOLE_OUTPUT_DRIVER_BUFFER_H

static char* think_console_output_driver_buffer =
	"\n"
	"// +----------------------------------------------------------------------\n"
	"// | ThinkPHP [ WE CAN DO IT JUST THINK IT ]\n"
	"// +----------------------------------------------------------------------\n"
	"// | Copyright (c) 2006-2016 http://thinkphp.cn All rights reserved.\n"
	"// +----------------------------------------------------------------------\n"
	"// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )\n"
	"// +----------------------------------------------------------------------\n"
	"// | Author: yunwuxin <448901948@qq.com>\n"
	"// +----------------------------------------------------------------------\n"
	"\n"
	"namespace think\\console\\output\\driver;\n"
	"\n"
	"use think\\console\\Output;\n"
	"\n"
	"class Buffer\n"
	"{\n"
	"    /**\n"
	"     * @var string\n"
	"     */\n"
	"    private $buffer = \'\';\n"
	"\n"
	"    public function __construct(Output $output)\n"
	"    {\n"
	"        // do nothing\n"
	"    }\n"
	"\n"
	"    public function fetch()\n"
	"    {\n"
	"        $content      = $this->buffer;\n"
	"        $this->buffer = \'\';\n"
	"        return $content;\n"
	"    }\n"
	"\n"
	"    public function write($messages, $newline = false, $options = Output::OUTPUT_NORMAL)\n"
	"    {\n"
	"        $messages = (array) $messages;\n"
	"\n"
	"        foreach ($messages as $message) {\n"
	"            $this->buffer .= $message;\n"
	"        }\n"
	"        if ($newline) {\n"
	"            $this->buffer .= \"\\n\";\n"
	"        }\n"
	"    }\n"
	"\n"
	"    public function renderException(\\Exception $e)\n"
	"    {\n"
	"        // do nothing\n"
	"    }\n"
	"\n"
	"}\n"
	"\n"
;
#endif